const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo.username, // 建立用户名称的映射
  userId: state => state.user.userInfo.userId, // 建立用户id的映射
  userInfo:state => state.user.userInfo,
  taskInfo: state => state.task.taskInfo,
  allTaskInfo: state => state.task.taskAllInfo
}
export default getters
